package com.blue.gateway.enums;

/**
 * @author xiaoyiming
 * @date 2020/5/5 14:39
 * @depiction
 */
public enum PayChannelEnum {
    ALIPAY(1, 100, "alipay", "支付宝支付"), // 用来标识支付宝支付这个大类
    ALIPAY_APP(1, 101, "alipay_app", "支付宝APP支付"),
    ALIPAY_H5(1, 102, "alipay_h5", "支付宝手机网页支付"),
    ALIPAY_QR(1, 103, "alipay_qr", "支付宝扫码支付"),
    ALIPAY_PC(1, 104, "alipay_pc", "支付宝PC网页支付"),
    ALIPAY_XCX(1, 105, "alipay_xcx", "支付宝xcx支付"),

    WX(2, 200, "wx", "微信支付"),  // 用来标识微信支付这个大类
    WX_APP(2, 201, "wx_app", "微信APP支付"),
    WX_GZ(2, 202, "wx_gz", "微信公众号支付"),
    WX_QR(2, 203, "wx_qr", "微信公众账号扫码支付"),
    WX_XCX(2, 204, "wx_xcx", "微信小程序支付"),
    WX_H5(2, 205, "wx_h5", "微信外部h5支付"),
    ;

    /** 支付类型 */
    private int payType;
    /** 支付编码（一个大类里，会有一些小类，用code来区分） */
    private int channelCode;
    /** 渠道简称 */
    private String payChannelValue;
    /** 渠道描述 */
    private String desc;

    PayChannelEnum(int payType, int channelCode, String payChannelValue, String desc) {
        this.payType = payType;
        this.channelCode = channelCode;
        this.payChannelValue = payChannelValue;
        this.desc = desc;
    }

    public int getPayType() {
        return payType;
    }

    public int getChannelCode() {
        return channelCode;
    }

    public String getPayChannelValue() {
        return payChannelValue;
    }

    public String getDesc() {
        return desc;
    }
}
